/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.siseventos.service;

import br.siseventos.model.TdPerfil;
import org.springframework.security.core.GrantedAuthority;


public class PerfilAdapter extends BaseService implements GrantedAuthority {
    
    // Campos
    private TdPerfil perfil;
    
    // Construtor

    public PerfilAdapter(TdPerfil perfil) {
        this.perfil = perfil;
    }
    
    
    // Servico
    @Override
    public String getAuthority() {
        return perfil.getNmePerfil();
    }
    
}
